<template>
    <div class="hotel-search-view">
        <!-- 主要内容 -->
        <el-row type="flex" justify="center" align="middle" style="height: 90vh;">
            <el-col :span="20">
                <el-card class="main-card">
                    <img src="../img/img_8.png" alt="Background" class="background-image">
                    <div class="logo">
                        <img src="../img/img_7.png" alt="Roome Logo" style="width: 150px; height: 140px; margin-bottom: 10px;">
                        <!--            <span>Roome</span>-->
                    </div>
                    <div class="slogan" style="font-family: '华文楷体';color: black;font-size: 16px">在您旅行中找到最好的优惠酒店</div>
                    <el-button type="primary" class="start-button" @click="startSearch">开始</el-button>
                    <div class="login-link">
                        <span style="color: black;font-size: 16px;font-family: '华文楷体'">已经有账号了？</span>
                        <el-link type="primary" style="font-size: 16px;font-family: '华文楷体'" @click="login">登录</el-link>
                    </div>
                </el-card>
            </el-col>
        </el-row>
    </div>
</template>


<script>
export default {
    name: 'HotelSearchView',
    methods: {
        startSearch() {
            this.$router.push('/login');
        },
        login() {
            this.$router.push('/login');
        }
    }
}
</script>

<style scoped>
.hotel-search-view {
    text-align: center;
    height: 100vh;
    /*  background: url('your_background_image_path.jpg') no - repeat center center; !* 需替换为实际背景图片路径 *!
      background - size: cover;*/
}
.background-image {
    width: 430px;
    height: 950px;
    object-fit: cover;
    position: absolute;
    top: -9px;
    left: -7px;
    z-index: -1;
}
.time-display {
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8); /* 半透明白色背景 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-card {
    padding: 15px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0); /* 半透明白色背景 */
    border-radius: 10px;
    box-shadow: none !important; /* 移除阴影 */
    border: none !important; /* 移除边框 */
}

.logo {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333; /* 文字颜色 */
}

.slogan {
    font-size: 16px;
    margin-bottom: 60px; /* 增加间距，使按钮和标语之间的距离更大 */
    color: #666;
}

.start-button {
    width: 80%; /* 适当缩小按钮宽度 */
    padding: 12px;
    background-color: #00c896; /* 按钮颜色调整为图中类似绿色 */
    border: none;
    border-radius: 25px;
    margin-bottom: 25px; /* 增加按钮与登录链接之间的间距 */
}

.login-link {
    font-size: 12px;
    color: #999;
    margin-top: 10px; /* 增加登录链接与按钮之间的间距 */
}

.login-link .el-link {
    font-size: 12px;
    color: #3af843; /* 登录链接颜色与按钮颜色呼应 */
}

/* 媒体查询，进一步优化手机屏幕显示 */
@media (max-width: 768px) {
    .main-card {
        padding: 10px;
    }
    .logo {
        font-size: 20px;
    }
    .slogan {
        font-size: 14px;
        margin-bottom: 400px; /* 增加移动端标语与按钮之间的间距 */
    }
    .start-button {
        margin-bottom: 20px; /* 增加移动端按钮与登录链接之间的间距 */
    }
    .login-link {
        font-size: 10px;
        margin-top: 5px; /* 增加移动端登录链接与按钮之间的间距 */
    }
    .login-link .el-link {
        font-size: 10px;
    }
}
</style>
